"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = __importDefault(require("express"));
const router = express_1.default.Router();
const controller_1 = require("../../controller");
const validator_1 = require("../../controller/validator");
router.post('/reg', validator_1.UserValidator.regAndLogin, controller_1.UserController.reg);
router.post('/login', validator_1.UserValidator.regAndLogin, controller_1.UserController.login);
exports.default = router;
